<template>
  <div>
    <van-cell-group>
      <van-cell title="诊断"
                :value="diagnosisContent?'是':'否'"/>
      <van-cell title="诊断内容"
                :label="`${diagnosisContent.symptom}：${diagnosisContent.symptomType}---${diagnosisContent.symptomName}`"/>
    </van-cell-group>
  </div>
</template>

<script>
import {mapGetters} from "vuex";

export default {
  name: 'diagnosis',
  computed: {
    ...mapGetters(['userPhone'])
  },
  mounted() {
    this.getDiagnosisContent();
  },
  data() {
    return {
      diagnosisContent: '',//诊断内容
    }
  },
  methods: {
    getDiagnosisContent() {
      this.$service.medicalHistoryService.getDiagnosisContent(this.userPhone).then(res => {
        this.diagnosisContent = res.data.data[0];
        console.log('诊断内容=' + this.diagnosisContent);
      })
    }
  },

}
</script>

<style scoped lang="less">

</style>
